package com.senlingspace.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.senlingspace.common.annotation.Excel;
import lombok.Data;

import java.util.Date;

/**
 * 订单列表导出
 *
 * @author wangliang
 */
@Data
public class OrderListExportVo {

    @Excel(name = "订单编号")
    private String orderNumber;

    @Excel(name = "订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Excel(name = "门店名称")
    private String shopName;

    @Excel(name = "订单来源" ,readConverterExp = "10=门店,20=抖音,30=美团,40=小程序")

    private int source;

    @Excel(name = "项目名称")
    private String projectName;

    @Excel(name = "票档")
    private String ticketLevelName;

    @Excel(name = "票类")
    private String ticketCategoryName;

    /** 当前票类购买数量 **/
    private String bayQuantity;

    @Excel(name = "票类数量")
    private int bayQuantitySum;

    @Excel(name = "商品名称")
    private String goodsName;

    /** 当前商品购买数量 **/
    private int buyGoodQuantity;

    @Excel(name = "商品数量")
    private int bayQuantityGoodsSum;

    @Excel(name = "核销码")
    private String verifyCode;

    @Excel(name = "订单金额")
    private String totalAmount;

    @Excel(name = "实付金额")
    private String actualAmount;

    @Excel(name = "支付方式",readConverterExp = "WECHAT=微信,ALIPAY=支付宝,UQRCODEPAY=银联支付,BESTPAY=翼支付,DCPAY=数字货币支付,INCASH=现金支付")
    private String paymentType;

    @Excel(name = "订单状态",readConverterExp = "UNREDEEMED=待核销,REDEEMED=已核销,PENDING_PAYMENT=待支付,ORDER_CANCELLED=订单取消,REFUNDED=已退款,WRISTBAND_RECEIVED=已领手环,DEVICE_RECEIVED=已领设备,COMPLETED=已完成,PENDING_PAYMENT=待支付,COMPLETED=已完成,WAITING_FOR_PICKUP=待取货,WAITING_FOR_SHIPPING=待发货,SHIPPED=已发货")
    private String businessStatus;

    @Excel(name = "支付状态",readConverterExp = "INIT=初始化,CREATE=下单成功,SUCCESS=交易成功,FAIL=交易失败,DEAL=交易处理中,UNKNOWN=未知状态,CLOSE=订单关闭,PART_REFUND=部分退款,REFUND=全部退款")
    private String paymentStatus;


}
